a=int(input("请输入三角形的边长（右下为顶角）"))
i=0
while (a>0):

    print("  "*a,end="")
    i += 1
    print(" *"*i)
    a-=1

a = int(input("请输入三角形的边长（右上为顶角）"))
i = 0
while (a > 0):
    print("  " * i, end="")
    i += 1
    print(" *" * a)
    a -= 1

a = int(input("请输入三角形的边长（左下为顶角）"))
i = 0
while (a > 0):
    i += 1
    print("*  " * i)
    a -= 1


a=int(input("请输入三角形的边长（左上为顶角）"))
while (a>0):
    print("*  "*a)
    a-=1